﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;

namespace AJWPFAdmin.Core.Components.AJTable.ViewModels
{
    /// <summary>
    /// AJTable组件行选择配置项
    /// </summary>
    public class AJTableRowSelection
    {
        /// <summary>
        /// 列宽度
        /// </summary>
        public DataGridLength Width { get; set; }

        /// <summary>
        /// 选中项发生变化时的回调
        /// </summary>
        public Action<IEnumerable<object>> OnChangeHandler { get; set; }

        /// <summary>
        /// 用户手动选择/取消选择的回调
        /// </summary>
        public Action<object,bool> OnSelectHandler { get; set; }

        /// <summary>
        /// 用户手动选择全部的回调
        /// </summary>
        public Action<IEnumerable<object>> OnSelectAllHandler { get; set; }
    }
}
